import moment from 'moment'
moment.locale('zh-cn')

// 转换时间
const formatTimeAgoFn = (targetDate) => {
  return moment(targetDate).from(new Date())
}

export {
  formatTimeAgoFn
}
